from sklearn.preprocessing import MinMaxScaler, StandardScaler

data = [[90, 2, 41, 50],
        [87, 3, 27, 44],
        [78, 4, 20, 30]]
# 归一化
# transformer = MinMaxScaler()
# data = transformer.fit_transform(data)
# print(data)
#标准化
transformer = StandardScaler()
data = transformer.fit_transform(data)
print(data)